package com.tiamo.traders.servicefront.ServiceFrontImpl;

import com.tiamo.traders.entity.News;
import com.tiamo.traders.mapperfront.FrontNewsMapper;
import com.tiamo.traders.servicefront.FrontNewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FrontNewsServiceImpl implements FrontNewsService {
    @Autowired
    FrontNewsMapper frontNewsMapper;

    @Override
    public List<News> newsFindAll(News news) {
        return frontNewsMapper.newsFindAll(news);
    }

    @Override
    public int newsGetCount(News news) {
        return frontNewsMapper.newsGetCount(news);
    }

    @Override
    public List<News> newsFindById(News news) {
        return frontNewsMapper.newsFindById(news);
    }
}
